package br.livro.android.cap3;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Exemplo2 extends Activity{
	@Override
	public void onCreate(Bundle icicle){
		super.onCreate(icicle);
		//COM XML
		//setContentView(R.layout.layout_exemplo2);
		
		//Com API
		TextView view = new TextView(this);
		view.setText("Segundo Exemplo no android");
		setContentView(view);
	}

}
